import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-04-24
 * Time: 19:44
 */
public class Main {
    public static boolean judge(int num){
        if(num == 1)
            return false;
        for(int i=2;i<=Math.sqrt(num);i++){
            if(num%i==0){
                return false;
            }
        }
        return true;
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        if(judge(num)){
            System.out.println(num + "是质数");
        }
        else{
            System.out.println(num + "不是质数");
        }
    }
}
